package com.zyb.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "service-order",fallback = OrderClientFeign.class)
public interface OrderClient {
    //课程ID和用户ID查询课程是否购买
    @GetMapping("/eduorder/order/isBuyCourse/{courseId}/{userId}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId,
                               @PathVariable("userId") String userId);
}
